package com.learning.consumerhystrixdashboard.controller;

import com.learning.consumerhystrixdashboard.client.ProducerUserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * (description)
 *
 * @author jinlong.liao on 2018/3/27
 */
@RestController
public class ConsumerController {

    @Autowired
    ProducerUserClient producerUserClient;

    @GetMapping("/userHi")
    public String userHi(@RequestParam("str") String str) {
        return producerUserClient.hi(str);
    }
}
